package com.ys.erp.entity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ys.erp.entity.data.bean.OrderGoods;
import com.ys.erp.entity.mapper.OrderGoodsMapper;
import com.ys.erp.entity.service.IOrderGoodsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lwj
 * @date 2023/4/28
 */
    
@Service
public class IOrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGoods> implements IOrderGoodsService {

    @Override
    public List<OrderGoods> listByOrderIds(List<Long> orderIdList) {
        QueryWrapper<OrderGoods> orderGoodsQw = new QueryWrapper<>();
        orderGoodsQw.lambda().in(OrderGoods::getOrderId, orderIdList);
        return this.list(orderGoodsQw);
    }

}
